package com.yonyou.lxp.account.ui;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.yonyou.lxp.account.BaseActivity;
import com.yonyou.lxp.account.BaseTwoActivity;
import com.yonyou.lxp.account.R;
import com.yonyou.lxp.account.utils.Constants;
import com.yonyou.lxp.account.utils.SPUtils;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;

@ContentView(R.layout.activity_seting)
public class SetingActivity extends BaseTwoActivity {
    @Event({
            R.id.btn_set_all_msg,
            R.id.btn_set_clean_time
    })
    private void onClick(View view) {
        switch (view.getId()) {
            case R.id.btn_set_all_msg:
                Intent intent = new Intent();
                intent.putExtra("type", 10086);
                setResult(10086, intent);
                finish();
                break;
            case R.id.btn_set_clean_time:
                intent = new Intent();
                SPUtils.put(mContext, Constants.SP_MSG_LASTTIME, "");
                intent.putExtra("type", 10087);
                setResult(10087, intent);
                finish();
                break;
        }
    }
}
